package com.ewzj.bigdata.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.ewzj.bigdata.mvp.contract.EditDetailContract;
import com.ewzj.bigdata.mvp.model.EditDetailModel;


@Module
public class EditDetailModule {
    private EditDetailContract.View view;

    /**
     * 构建EditDetailModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public EditDetailModule(EditDetailContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    EditDetailContract.View provideEditDetailView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    EditDetailContract.Model provideEditDetailModel(EditDetailModel model) {
        return model;
    }
}